/**
 * 合同剩余量contrastList.js
 * 版本号： v1.0.0
 */
$(function(){
    var purId = $('#purId_').val();
    $("#countLeft_dataList").datagrid({
        fitColumns: true,
        fit:true,
        method: "POST",
        rownumbers: true,
        singleSelect:true,
        pagination: true,
        striped: true,
        border: false,
        pageSize:20,
        pageList:[20,50,100],
        url: CONTEXT_PATH + '/purchaseApplyCheck/getContrastList.do?purId='+purId,
        idField: 'purId',
        columns: [
            [
                {field: 'materialName', title: '材料名称', width: 160, fixed: true},
                {field: 'standardType', title: '规格型号', width: 160, fixed: true},
                {field: 'totalCount', title: '合同量', width: 120, fixed: true,align:'center'},
                {field: 'purchasedNum', title: '已请购量', width: 120, fixed: true,align:'center'},
                {field: 'leftCount', title: '合同剩余量', width: 120,fixed: true,align:'center'},
                {field: 'meteringUnit', title: '计量单位', width: 120}
            ]
        ]
    });
});